<!DOCTYPE html>
{% extends 'common/base.html' %}
{% block title %}
    帖子详情
{% endblock %}
{% block styles %}
    {{ super() }}
    <style type="text/css">
    .upost{
        background-color: #337AB7;
        padding: 15px;
        color: white;
        border-radius: 5px;
    }
    </style>
{% endblock %}
{% block page_content %}
    <div class="row">
        <div class="col-md-1"></div>
        <div class="col-md-10">
            <div class="upost">
                <div class="media">
                    <div class="media-left">
                        <a href="{{ url_for('user.newuserposts',uid=post.user.id) }}">
                            <img class="media-object" src="{{ url_for('static',filename='upload/'+post.user.icon ) }}"
                                 style="width: 64px;">
                        </a>
                    </div>
                    <div class="media-body">
                        <h4 class="media-heading">发帖人：{{ post.user.username }}</h4>
                        {{ post.content }}
                    </div>
                </div>
            </div>
            <div class="upost">
                {% for p in ppost %}
                <p>{{ p.puser }}评论{{ post.user.username }}：{{ p.pcontent }}</p>
                {% endfor %}
            </div>
        </div>
        <div class="col-md-1"></div>
    </div>
{% endblock %}